﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Content/Master.Master" ValidateRequest="false" Inherits="System.Web.Mvc.ViewPage<SCS.Core.Models.Collection.MetadataCollection>" %>
<%@ Import Namespace="SCS.Core" %>
<%@ Import Namespace="SCS.Core.Models" %>
<%@ Import Namespace="SCS.Core.ViewModels" %>
<%@ Import Namespace="SCS.Core.Controllers" %>
<%@ Import Namespace="SCSService" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Detail Metadata
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript" src="/Scripts/jquery-1.6.1.min.js"></script>
    <script type="text/javascript" src="/Scripts/jquery-ui-1.8.13.custom.min.js"></script>
    <%--Validator--%>
    <script src="/Scripts/jquery.validate.min.js" type="text/javascript"></script>
    <script src="/Scripts/MicrosoftMvcJQueryValidation.js" type="text/javascript"></script>
    
   <% Html.EnableClientValidation(); %>
   <% using (Html.BeginForm((bool)ViewData["IsAdd"] ? "SaveAddMetadata" : "SaveEditMetadata", "AdvantageSetting", FormMethod.Post, new { siteGuid = "sendFileForm", language = "sendFileForm", id = "sendFileForm", enctype = "multipart/form-data" }))
            {%>
    
        <div class="box ">
		    <h2 class="box-header"><%=(bool)ViewData["IsAdd"] ? "New Metadata" : "Edit Metadata"%></h2>
           
		    <div class="box-content">
                
                <label class="form-label"> Tiều đề </label>
                <%= Html.TextBoxFor(m => m.MetaTitle, new { @class = "form-field full" })%> <span style="color:Red;font-weight:bold"><%= Html.ValidationMessageFor(m => m.MetaTitle) %></span>

                <label class="form-label"> Từ khóa </label>
                <%= Html.TextAreaFor(m => m.MetaKeywords, new { @class = "form-field width60" })%> 

                <label class="form-label"> Mô tả </label>
                <%= Html.TextAreaFor(m => m.MetaDescription, new { @class = "form-field width60" })%>
                                   
                <label class="form-label"> Trang </label>
                <%= Html.DropDownListFor(m=>m.PageID, (SelectList)ViewData["ListPage"],"--Choose page--")%> <span style="color:Red;font-weight:bold"><%= Html.ValidationMessageFor(m => m.PageID) %></span>
                               
                <label class="form-label"> Ghi chú </label>
                <%= Html.TextAreaFor(m => m.Note, new { @class = "form-field width60" })%>
                 
                <label class="form-label"> PoweredBy </label>
                <%= Html.TextBoxFor(m => m.MetaPoweredBy, new { @class = "form-field half" })%>

                <label class="form-label"> Creator </label>
                <%= Html.TextBoxFor(m => m.MetaDcCreator, new { @class = "form-field half" })%>

                <label class="form-label"> Robots </label>
                <%= Html.TextBoxFor(m => m.MetaRobots, new { @class = "form-field half" })%>

                <label class="form-label"> Menu ID </label>
                <%= Html.TextBoxFor(m => m.MenuId, new { @class = "form-field small" })%>

                <label class="form-label"> Param </label>
                <%= Html.TextBoxFor(m => m.Param, new { @class = "form-field half" })%>

                <label class="form-label"> Revisit After </label>
                <%= Html.TextBoxFor(m => m.RevisitAfter, new { @class = "form-field half" })%>

                <label class="form-label"> Date Publication </label>
                <%= Html.TextBoxFor(m => m.DatePublication, new { @class = "form-field half" })%>

                <label class="form-label"> Home page </label>
                <%= Html.TextBoxFor(m => m.Homepage, new { @class = "form-field half" })%>

                <label class="form-label"> DcLanguage </label>
                <%= Html.TextBoxFor(m => m.DcLanguage, new { @class = "form-field small" })%>
                 
                 <%=Html.HiddenFor(m=>m.MetaDctermsCreated) %>
                 <%=Html.HiddenFor(m=>m.MetaDcctermsModified) %>
                 <%=Html.HiddenFor(m=>m.MetaID) %>
                 <p>
                <%=ViewData["Result"]%> 
                </p>
                                   
                 <input type="submit" value="" class="button white_input save_input " style="width: 74px;height: 28px; float:left; margin-right:10px;"/> <!--Button Save-->
                 <a class="button white" href="javascript:history.back();"><span class="icon_text cancel"></span>Đóng</a> <!--Button Close-->
               
	        </div>
	    </div>
	    <div class="clear"></div>    
    
       
    <% } %>
   
    
</asp:Content>
